package com.kaoyaya.delivery.fragment;

import com.kaoyaya.delivery.activity.R;

import android.view.LayoutInflater;
import android.view.View;
import android.widget.TextView;

public class SideBarTitle extends SideBarItem{
	
	private View view;

	public SideBarTitle(LayoutInflater inflater, String name) {
		super(null);
		initView(inflater, name);
	}
	
	public void initView(LayoutInflater inflater, String name) {
		View mView = inflater.inflate(R.layout.sidebar_title, null);
		TextView tvTitle = (TextView) mView.findViewById(R.id.tv_title);
		tvTitle.setText(name);
		this.view = mView;
	}

	@Override
	public View getView() {
		return view;
	}
	
}
